-- local kuangmiu = fk.CreateSkill{
--   name = "wk_heg__kuangmiu",
--   tags = {Skill.DeputyPlace},
-- }

-- Fk:loadTranslationTable{
--   ["wk_heg__kuangmiu"] = "匡谬",
--   [":wk_heg__kuangmiu"] = "副将技，此武将牌上单独的阴阳鱼个数-1；与你势力相同的角色受到伤害后，你可以交给伤害来源一张牌并令受伤角色回复1点体力，然后伤害来源可以移除副将的武将牌以令你交换主副将。",

--   ["#wk_heg__kuangmiu_remove"] = "匡谬：你可以移除副将的武将牌，令 步骘 交换主副将",
--   ["#wk_heg__kuangmiu_give"] = "匡谬：你可以交给伤害来源一张牌，令受伤角色回复1点体力",

--   ["$wk_heg__kuangmiu1"] = "督军之才，子明强于我甚多。",
--   ["$wk_heg__kuangmiu2"] = "此间重任，公卿可担之。",
-- }

-- local H = require "packages.ol_hegemony.util"
-- local HG = require "packages.new_heg_diy_my.util"

-- kuangmiu:addEffect(fk.Damaged, {
--   anim_type = "defensive",
--   can_trigger = function (self, event, target, player, data)
--     return player:hasSkill(kuangmiu.name) and not player:isNude() and data.from and target and H.compareKingdomWith(player, target)
--   end,
--   on_cost = function (self, event, target, player, data)
--     local room = player.room
--     local card = room:askToCards(player,{
--       min_num = 1,
--       max_num = 1,
--       include_equip = true,
--       skill_name = kuangmiu.name,
--       cancelable = true,
--       prompt = "#wk_heg__kuangmiu_give",
--     })
--     if #card > 0 then
--       event:setCostData(self, {card = card})
--       return true
--     end
--   end,
--   on_use = function (self, event, target, player, data)
--     local room = player.room
--     local card = event:getCostData(self).card
--     room:obtainCard(data.from, card, false, fk.ReasonGive)
--     if target.hp < target.maxHp then
--       room:recover{
--         who = target,
--         num = 1,
--         recoverBy = player,
--         skillName = kuangmiu.name,
--       }
--     end
--     if room:askToSkillInvoke(data.from, {skill_name = kuangmiu.name, prompt = "#wk_heg__kuangmiu_remove" }) then
--       H.removeGeneral(data.from, true)
--       HG.SwapMainAndDeputy(room, player)
--     end
--   end,
-- })

-- return kuangmiu